<template>
	<div>
		<div class="graybg"></div>
		<!--头部-->
		<header id="header">
			<div class="header header_bg clearfix">
				<div class="header_left pull-left">
					<i class="iconfont baiColor" onclick="javascript:history.back(-1)">&#xe612;</i>
				</div>
				<div class="header_center baiColor">复消积分明细</div>
			</div>
		</header>
		<div class="mian _width">
			<div v-if= "noneshow" style="text-align: center;">
				<span>您还没有提现记录</span>
			</div>
			<div class="main_detail _width" v-else>
				<div class="detail_each _width" v-for="main in mains">
					<div class="each_mian marginAuto">
						<div class="time">
							<span v-text="main.date"></span>
						</div>
						<div class="describe">
							<span v-text="main.content"></span>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</template>

<script>
	export default{
		data(){
			return{
				mains:[
//				{
//					money_ye_date:"0000-00-00 00:00:00",	//时间
//					money_ye_money:"00.00",	//提现金额
//				},
				],
				noneshow:true,
			}
		},
		mounted(){
			let _this = this;
			var info = window.localStorage.data;
			var params = new URLSearchParams();
			params.append('token', info);	//客户秘钥（信息）
			params.append('p',0);
			this.$axios({
			   url:"Home/Transaction/fuyin_mx",
				method:"post",
				data:params
			  }).then((res)=>{
			  	console.log(res.data)
			   	var datas = res.data;
			   	if(datas.code == 0){
			   		alert("数据返回失败")
			   	}else if(datas.code == 1){
			   		this.noneshow =false 
			   		_this.mains = res.data.data
			   	}else if(datas.code == 2){
			   		_this.mains = "";
			   		this.noneshow =true
			   		
			   	}
			}).catch(function(err){
				console.log(err)		
			})
		},
	}
</script>

<style scoped="scoped">
	@import "../css/public.css";
	.header .header_left i{
		font-size: 20px;
	}
	.mian{
		padding-top:50px;
	}
	.main_detail{
		background: #fff;
	}
	.detail_each{
		height: 80px;
		border-bottom: 1px solid #e8e2e2;
	}
	.detail_each:nth-last-of-type(1){
		border: none;
	}
	.each_mian{
		width: 95%;
		display:flex;
		justify-content: space-between;
	}
	.each_mian .time,
	.describe{
		font-size: 14px;
		color: #333333;
	}
	.time{
		line-height: 78px;
	}
	.describe{
		width: 50%;
		padding: 5px 0;
		line-height: 32px;
	}
	.num{
		color:#FBB217;
	}
	
</style>